<template>
  <div class="nes-1" @click="geturl(item.newsLink)">
    <div class="mins-1">{{ item.newsTitle }}</div>
    <div class="nes-text">{{ item.publishTime }}</div>
  </div>
</template>

<script lang="ts" setup>
defineProps<{
  item: any
}>()
const geturl = (url: string) => {
  window.location.href = url
}
</script>

<style lang="scss" scoped>
.nes-1 {
  width: 100%;
  height: 60px;
  padding: 10px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  box-sizing: border-box;
}
.nes-text {
  font-size: 12px;
  color: #b1aeae;
}
.mins-1 {
  width: 100%;
  font-size: 14px;
  margin-bottom: 5px;
  white-space: nowrap; /* 防止文本换行 */
  overflow: hidden; /* 溢出隐藏 */
  text-overflow: ellipsis; /* 使用省略号显示截断的文本 */
}
</style>
